<form class="form-horizontal" id="CstOrderDetailForm" xmlns:th="http://www.w3.org/1999/xhtml">
    <input class="hidden" name="id" th:value="${selChance.id}">

    <div class="box-body">
        <div class="form-group">
            <label  class="col-sm-3 control-label">联系人编号 :</label>
            <div class="col-sm-8">
                <input  name="chcId" class="form-control"  min="2" require="必填项"  placeholder="" th:value="${selChance.chcId}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">机会来源 :</label>
            <div class="col-sm-8">
                <input  name="chcSource" class="form-control"  min="2" require="必填项"  placeholder="" th:value="${selChance.chcSource}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">客户名称 :</label>
            <div class="col-sm-8">
                <input name="chcCustName" class="form-control" placeholder="" th:value="${selChance.chcCustName}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">执行效果 :</label>
            <div class="col-sm-8">
                <input name="chcTitle" class="form-control" placeholder="" th:value="${selChance.chcTitle}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">成功机率 :</label>
            <div class="col-sm-8">
                <input name="chcRate" class="form-control" placeholder="" th:value="${selChance.chcRate}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">联系人 :</label>
            <div class="col-sm-8">
                <input name="chcLinkman" class="form-control" placeholder="" th:value="${selChance.chcLinkman}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">联系人电话 :</label>
            <div class="col-sm-8">
                <input name="chcTel" class="form-control" placeholder="" th:value="${selChance.chcTel}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">联系人性别 :</label>
            <div class="col-sm-8">
                <!--                                <input name="lkmGender" class="form-control" placeholder="">-->
                男:<input  name="chcGender" checked type="checkbox" th:value="${selChance.chcGender}" value="男">
                女:<input  name="chcGender" type="checkbox" th:value="${selChance.chcGender}" value="女">

            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">机会描述 :</label>
            <div class="col-sm-8">
                <input name="chcDesc" class="form-control" placeholder="" th:value="${selChance.chcDesc}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">创建人编号 :</label>
            <div class="col-sm-8">
                <input name="chcCreateId" class="form-control" placeholder="" th:value="${selChance.chcCreateId}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">创建人姓名 :</label>
            <div class="col-sm-8">
                <input name="chcCreateName" class="form-control" placeholder="" th:value="${selChance.chcCreateName}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">指派给的人编号 :</label>
            <div class="col-sm-8">
                <input name="chcDueId" class="form-control" placeholder="" th:value="${selChance.chcDueId}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">指派给的人姓名 :</label>
            <div class="col-sm-8">
                <input name="chcDueName" class="form-control" placeholder="" th:value="${selChance.chcDueName}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">销售状态 :</label>
            <div class="col-sm-8">
                <select name="chcStatus" id="plaResult" class="form-control m-b"  th:value="${selChance.chcStatus }">
                    <option  value="1">以指派</option>
                    <option  value="2">未指派</option>
                </select>
            </div>
        </div>
    </div>
    <!-- /.box-body -->
    <div class="box-footer">
        <div class="pull-right">
            <button type="button" id="saveDetailCustomer" class="btn btn-info">确定</button>
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
        </div>
    </div>
    <!-- /.box-footer -->
</form>
<script>
    $(function () {
        $("#saveDetailCustomer").on('click', function () {
            if (doValidForm(CstOrderDetailForm)) {
                Core.mask("#saveDetailCustomer");
                Core.postAjax("/selChance/edit",$("#CstOrderDetailForm").serialize(),function (data) {
                    if (data.status == 200) {
                        Core.unmask("#saveDetailCustomer");
                        $("#userDetailModal").modal("hide");
                        $("#myModal").modal("hide");
                        Core.refreshTable("#table",true);
                    }
                    layer.msg(data.msg);
                })
            }
        });
    });
</script>